#include<iostream>
using namespace std;
#include<assert.h>
using namespace std;
class Stack
{
public:
	Stack(int capacity);
	void Stackpush(int x);
	int Stacktop();
	void Stackpop();
	~Stack();
private:
	int* _a;
	int _size;
	int _capacity;
};